function useFoo() {
  let x = 0;
  return value => {
    x = value;
  };
}
